define(() => {
    return function(cont, res) {
        let str = "";
        res.forEach(val => {
            str += `
                <li>
                    <label for=""></label>
                    <div class="pic_wrap">
                        <a href="">
                            <img src="${val.img}" alt="">
                        </a>
                    </div>
                    <div class="same_style">
                        <a href=""><img src="${val.sImg[0]}" alt=""></a>
                        <a href=""><img src="${val.sImg[1]}" alt=""></a>
                    </div>
                    <div class="goods_title">
                        <a href="">${val.text}</a>
                    </div>
                    <div class="price_wrap">
                        <p class="price_wrap_contain">
                            <span class="price">${val.price}</span>
                            <span class="logo"></span>
                        </p>
                    </div>
                    <div class="warehouse_wrap">
                        <a href="">${val.warehouse}</a>
                    </div>
                    <div class="goods_sku_wrap">
                        SKU:
                        <span>${val.sku}</span>
                        <a href=""><img src="../环球华品/images/shop-type-CB.png" alt=""></a>
                    </div>
                    <div class="stock_wrap">
                        <span>库存:</span>
                        <span>${val.stock}</span>
                    </div>
                    <p class="download_number">
                        <span>下载次数:</span>
                        <span>${val.download}</span>
                    </p>
                    <p class="action_wrap">
                        <button class="add" index="${val.sku}">加入购物车</button>
                        <a href="">产品刊登</a>
                    </p>
            </li>`
        })
        cont.html(str);
    }

})